package org.itboys.mobile.entity.lasted;


import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：jiangxiong
 * 日期：2017年2月27日
 * 联系方式 ：empty90911@126.com
 * 描述：系统_角色和功能的权限_实体.做角色授权使用江雄重新写的
		*/
@Entity(value="SystemRolePermission", noClassnameStored = true)
public class SystemRolePermission extends BaseMongoEntity {
	public  static Integer system_role_permission_type_menu=1;//权限类型：菜单
	public  static Integer system_role_permission_type_operate=2;//权限类型：功能

	private Long roleId;//角色
	private Long menuId;//菜单及功能ID
	private Integer type;//类型.1,菜单

	public SystemRolePermission() {
	}

	public SystemRolePermission(Long roleId, Long menuId, Integer type) {
		this.roleId = roleId;
		this.menuId = menuId;
		this.type = type;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
